package org.btik.light.meta.node;

import org.btik.light.meta.LightNode;

public class SystemNode extends DefaultNode {

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof SystemNode)){
            return false;
        }
        return LightNode.ROOT.equals(((SystemNode) obj).location());
    }

    @Override
    public int hashCode() {
        return LightNode.ROOT.hashCode();
    }

    private static final SystemNode instance = new SystemNode(null, LightNode.ROOT);

    private SystemNode(LightNode parent, String location) {
        super(parent, location);
    }

    public static SystemNode getInstance() {
        return instance;
    }
}
